package com.itheima.reggie.dto;

import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.DishFlavor;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;

@Data
//extends Dish继承了菜品实体类，不用一个个在 DishDto重写 Dish的属性
public class DishDto extends Dish {

    //菜品对应的口味数据，DishFlavor表
    private List<DishFlavor> flavors = new ArrayList<>();

    //菜品分类，category
    private String categoryName;

    //
    private Integer copies;
}
